import request from '../utils/request'

//分组管理
export const get_fzulist = (params:any) => {
    return request({
        url:'/prod/prodTag/page',
        method:'GET',
        params:params
    })
}
//分类管理
export const get_classlist=(params:any)=>{
    return request({
        url:`/prod/category/table?t=${new Date().getTime()}`,
        method:'GET',
        params:params
    })
}
//产品管理
export const get_chanlist=(params:any)=>{
    return request({        
        url: '/prod/prod/page',
        method: "GET",
        params:params
    })
}
// 产品管理删除
export const delchanlist = (data:any)=> request.delete('/prod/prod',{data})

// 分组管理删除
export const del_List = (id:any)=> request.delete(`/prod/prodTag/${id}`)

// 分类管理删除
export const del_fendelete = (categoryId:any)=> request.delete(`/prod/category/${categoryId}`)

// 批量删除
export const all_delete = (params:any)=>{
     return request({
        url:'/prod/prod',
        method:'DELETE',
        data:params,

     })
}